Routines (alphabetical) > Routines: G > GRIB Routines > GRIB_INDEX_NEW_FROM_FILE

GRIB_INDEX_NEW_FROM_FILE

The GRIB_INDEX_NEW_FROM_FILE function creates a new index from a file. The file is indexed with Keys.

Syntax

Result = GRIB_INDEX_NEW_FROM_FILE( Filename, Keys)

Return Value

Returns a GRIB file index.

Arguments

Filename

A string giving the name of the message file to be indexed.

Keys

A string array of keys for the index. For example, 'totalLength:d, editionNumber:l, centre:d'. The key type can be explicitly declared by appending ':l' for LONG, ':d' for DOUBLE, and ':s' for STRING to the key name. If the type is not declared explicitly, the native type is assumed.

Examples

See GRIB_GET_VALUESfor a general example using the GRIB routines.

Version History

8.1

Introduced

See Also

GRIB_INDEX_RELEASE